package com.example.flower_shop.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

/**
 * @TableName sys_role
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_role")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RoleEntity extends BaseEntity implements Serializable {
    /**
     * ID
     */
    @TableId
    private Long id;
    /**
     * 名称
     */
    private String name;
    /**
     * 角色标签
     */
    private String label;
    /**
     * 备注
     */
    private String remark;
    /**
     * 数据权限是否关联上下级
     */
    private Boolean relevance;
    /**
     * 状态
     */
    private Boolean status;

    public RoleEntity(String name, String label) {
        this.name = name;
        this.label = label;
    }
}